<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>域对象测试1</title>

</head>
<body>

<%
    //    pageContext.setAttribute("key", "pageContext");
//    request.setAttribute("key", "request");
//    session.setAttribute("key", "session");
    application.setAttribute("key", "application");
%>

<%--<%=pageContext.getAttribute("key")%>--%>
<%--<%=request.getAttribute("key")%>--%>
<%--<%=session.getAttribute("key")%>--%>
<%=application.getAttribute("key")%>
<%--请求转发下 才会在 scope2 中显示--%>
<%
//    request.getRequestDispatcher("./scope2.jsp").forward(request, response);
%>
</body>
</html>
